package cn.jiadakeji.parent.mapper;

import cn.jiadakeji.parent.domain.Customer;
import cn.jiadakeji.parent.dto.CustomerJwtDTO;
import cn.jiadakeji.parent.dto.CustomerParentPartDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Entity cn.jiadakeji.parent.domain.Customer
 */
@Mapper
public interface CustomerMapper extends BaseMapper<Customer> {

    CustomerJwtDTO selectCustomerJwtDTOById( @Param("id") String id);

    int updateSelectiveById(Customer customer);

    CustomerParentPartDTO selectOneByPhone(Customer customer);

    Customer selectOneByIdAndDelFlag(@Param("id") String id);

    String getTeacherName(@Param("customerId") String customerId);
}




